package org.example.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("weather_current")
@ApiModel(description = "当前天气数据")
public class WeatherCurrent {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("城市代码")
    private String cityCode;

    @ApiModelProperty("城市名称")
    private String cityName;

    @ApiModelProperty("温度")
    private BigDecimal temperature;

    @ApiModelProperty("湿度")
    private BigDecimal humidity;

    @ApiModelProperty("风速")
    private BigDecimal windSpeed;

    @ApiModelProperty("风向")
    private String windDirection;

    @ApiModelProperty("天气状况")
    private String weatherCondition;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
} 